<?php 

include './function.php';

$a1=array("Horse","Dog","Cat","cat");
$a2=array("Cow","Dog","Rat");


print_r(array_map("myfunction",$a1,$a2));  
function myfunction($v1,$v2){
	if ($v1===$v2){  
		return true;
	}
	return false;
}


$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$a2=array("e"=>"red","f"=>"green","g"=>"blue");

$result=array_diff($a1,$a2);
print_r($result);









 ?>